<?php $this->headLink()->appendStylesheet('/css/custom_my_acc.css?v='.AC_VERSION)?>
<?php $this->jQuery()->enable()?>
<?php $this->JQuery()->javascriptCaptureStart()?>
jQuery(function() {
	 
	$j('#container').attr('class', 'success')
});
<?php $this->JQuery()->javascriptCaptureEnd()?>  
    <section class="serp posted">
        <h2><?php echo $this->t('Thank you. Your message has been sent.')?></h2>
        <p><?php echo $this->t('A copy of your message and responses from the Poster will be sent to __1__.', null, $this->email)?><?php if(!empty($this->search)):?> <?php echo $this->t("Back to <a href='__1__'>Search Results</a>.", null, $this->search->url)?><?php endif;?></p>
    
		<ul>
    		<li>
				<a href="<?php echo $this->listing->url()?>">
					<figure><img src="<?php echo $this->thumbnail()->scale($this->listing->featured_photo);?>"></figure>
					<h1><?php echo $this->listing->title?></h1>
					<?php if(!empty($this->listing->area_l2)):?>
	                <dl class="location">
	                    <dd><?php echo $this->listing->area_l2?></dd>
	                </dl>
	                <?php endif;?>
					<dl class="date">
						<dd><?php echo date(MEDIUM_DATE_FORMAT, strtotime($this->listing->posted_at))?></dd>
					</dl>	
					<dl class="price">
						<dd>
							<?php if (true):?><!--dt><span>Price</span></dt--><?php endif;?>
                            <?php if (!empty($this->listing->sale_price) || !empty($this->listing->rent_price)): ?>
                                <?php
                                if (!empty($this->listing->sale_price)) {
                                    $sale_price = number_format($this->listing->sale_price);
                                    ?><dd>HKD <?php echo $sale_price?> <em> (Sale)</em></dd><?php
                                }
                                if (!empty($this->listing->rent_price)) {
                                    $rent_price = number_format($this->listing->rent_price);
                                    ?><dd>HKD <?php echo $rent_price?> <em> (Rent)</em></dd><?php
                                }
                                ?>   
                                    
                            <?php elseif (!empty($this->listing->is_free)):?>
                                <dd><?php echo $this->t('Free');?></dd>
                            <?php elseif (!empty($this->listing->is_contact)):?>
                                <dd><?php echo $this->t('Please contact');?></dd>
                            <?php elseif (!empty($this->listing->price)): ?>
                                <dd>HKD <?php echo number_format($this->listing->price);?></dd>
                            <?php endif;?>
						</dd>
					</dl>
					
					<span>&gt;</span>
				</a>
			</li>
    	</ul>
    </section>
<?php if(!empty($this->similar_ads)):?>    
    <section class="pick">
	    <h2><?php echo $this->t('Similar Ads');?></h2>
	    <ul>
	    <?php foreach($this->similar_ads as $ad):?>
	    	<li><h1><a href="<?php echo $ad->url[$this->getLanguagePosition()]?>"><img src="<?php echo $this->thumbnail()->resizeAndCrop($ad->photo, 300, 180)?>"><span><?php echo $ad->title?></span></a></h1></li>
	    <?php endforeach;?>
	    <!--li><h1><a href="#"><img src="images/samplePic.jpg"><span>Jaguar XJS V12 6.0 1994</span></a></h1></li>
	    <li><h1><a href="#"><img src="images/samplePic.jpg"><span>Cannondale F3 bike</span></a></h1></li>
	    <li><h1><a href="#"><img src="images/samplePic.jpg"><span>medlano citrus sectional sofa set - sofasale</span></a></h1></li>
	    <li><h1><a href="#"><img src="images/samplePic.jpg"><span>Jaguar XJS V12 6.0 1994</span></a></h1></li>
	    <li><h1><a href="#"><img src="images/samplePic.jpg"><span>Jaguar XJS V12 6.0 1994</span></a></h1></li>
	    <li><h1><a href="#"><img src="images/samplePic.jpg"><span>Jaguar XJS V12 6.0 1994</span></a></h1></li-->
	    </ul>
    </section>
  <?php endif;?>  
    
    
	<?php echo $this->Partial('mobile/other.phtml', 'default'); ?>
